import processing.pdf.*;
import fiveagon.io.*;

Saver saver = new Saver2D(this, "new_name_here");

void setup()
{
}

void draw()
{
    saver.beginRecord();
    saver.endRecord();
}

void keyTyped() {
    switch(key) {
    case 'o':
        saver.save();
        break;
    case 'p':
        saver.saveRecord();
        break;
    case 'P':
        saver.save();
        saver.saveRecord();
        break;
    }
}

